﻿<%@ Page PathInChannel="play/{ID}{Ext}" Object="Movie.Url" %>
<%@ OutputCache Duration="86400" VaryByParam="none" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<ali:Get ID="MovieUrl" Object="Movie.Url" PageID="Request.QueryString['ID']" ForMeta="true" />
<ali:Get ID="Movie" Object="Movie" Guid="MovieUrl[MovieID]" ForMeta="true" />
<ali:Get ID="Player" Mark="System" Object="Player" Guid="MovieUrl[PlayerID]" />
<ali:Get ID="Config" Object="InstanceConfig" Operation="GetBasicSettings()" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<%=MetaKeywords%>" />
<meta name="description" content="<%=MetaDescription%>" />
<title><%=MovieUrl[Name]%> - <%=Movie[Name]%> - <%=Movie[CategoryName]%> - <%=Channel[Name]%> - <%=Site[Name]%></title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />
<ali:Comment><link rel="stylesheet" type="text/css" href="S01/CHS/css/common.css" /></ali:Comment>
<link rel="stylesheet" type="text/css" href="<%=CssPath%>common.css" />
<script type="text/javascript">
var _page = "play";
var _webPath = "<%=WebPath%>";
var _lang = "<%=PageLang%>";
var _id = "<%=Movie[InnerID]%>";
var _guid = "<%=Movie[ID]%>";
var _urlID = "<%=MovieUrl[InnerID]%>";
var _playerID = "<%=Player[InnerID]%>";
var _commentPage = "<%=BuildUrl("ajax_movie_comment")%>";
var _checkComment = <%=Config[CheckComment]%>;
var _lang_copy = "网址已复制，粘贴给好友请按Crtl+V。";
var _lang_name = "名称不能为空！";
var _lang_password = "密码不能为空！";
var _lang_content = "内容不能为空！";
var _lang_cant_login = "会员名或密码有误！";
var _lang_cant_post_comment = "发表评论失败！";
var _lang_post_comment_success = "发表评论成功！";
<%If Convert.ToBoolean(MovieUrl[NeedPack])%>
	var _url = "<%=MovieUrl[Pack]%>";
<%Else%>
	var _url = "<%=MovieUrl[URL]%>";
<%EndIf%>
</script>
</head>
<body>
<!-- TemplateBeginEditable name="菜单" -->
<ali:Menu Condition="IsDisplay=true and CategoryID IS NULL and ParentID IS NULL">
	<div class="Menu">
		<ali:Record>
			<ali:Select>
				<ali:Yes>
					<a href="<%=URL%>" target="<%=Target%>" title="<%=Name%>"<%=Style%>><strong><%=Name%></strong></a>
				</ali:Yes>
				<ali:No>
					<a href="<%=URL%>" target="<%=Target%>" title="<%=Name%>"<%=Style%>><%=Name%></a>
				</ali:No>
			</ali:Select>
			<ali:Separator>|</ali:Separator>
		</ali:Record>
	</div>
</ali:Menu>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="广告位：电影 - Banner" -->
<div class="Ad1">
	<ali:Ad Guid="{8A6454F7-4259-463c-B85A-218712B2B97C}">
		<a href="http://www.alibaza.com" target="_blank"><img src="<%=ImagePath%>ad/ad1.jpg" alt="Ad" style="width:980px;height:100px" /></a>
	</ali:Ad>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="电影类别" -->
<ali:List Object="MovieCategory" Condition="IsDisplay=true and ParentID IS NULL">
	<div class="SubMenu">
		<ali:Record>
			<a href="<%=BuildUrl()%>" title="<%=Name%>"<%=Style%>><%=Name%></a>
			<ali:Separator>|</ali:Separator>
		</ali:Record>
	</div>
</ali:List>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="搜索" -->
<div class="Search">
	<form action="" target="_blank">
		<input type="radio" name="Search" id="MovieSearch" value="<%=BuildUrl("movie_search")%>" checked="checked" /><label for="MovieSearch">电影</label>
		<input type="radio" name="Search" id="PersonSearch" value="<%=BuildUrl("person_search")%>" /><label for="PersonSearch">人物</label>
		<input type="text" name="q" value="输入影片名" class="Text <%=PageLang%>Font" />
		<input type="submit" value="搜 索" class="Submit" />
		<ali:List Object="Movie.Tag" Operation="FilterList(1, 10, 'HitCount DESC')">
			<span>热门标签：
				<ali:Record>
					<a href="<%=BuildUrl("movie_tag")%>" target="_blank" title="<%=TagName%>"><%=TagName%></a>
				</ali:Record>
			</span>
		</ali:List>
	</form>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="路径" -->
<div class="Path">当前位置：
	<ali:Path Object="MovieCategory" Guid="Movie[CategoryID]">
		<ali:Record>
			<a href="<%=URL%>" title="<%=Name%>"><%=Name%></a> &gt;&gt; 
		</ali:Record>
	</ali:Path>
	<a href="<%=BuildUrl("movie", Movie)%>"><%=Movie[Name]%></a> &gt;&gt; <%=MovieUrl[Name]%>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="广告位：电影 - 路径下方" -->
<div class="Ad2">
	<ali:Ad Guid="{B099486C-E66D-45fd-B691-55DB592CA086}">
		<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad2.jpg" alt="Ad" style="width:980px;height:70px" /></a>
	</ali:Ad>
</div>
<!-- TemplateEndEditable -->

<div class="Wrap">
	<div class="Block5 RightMargin">
		<div class="Block6">
			<h2><%=Movie[Name]%></h2>
			<div id="Player"></div>
			<p>
				<a href="" id="Up">顶 (<span></span>)</a>
				<a href="" id="Down">踩 (<span></span>)</a>
				<a href="" id="Error">报告错误</a>
				<%If Convert.ToString(MovieUrl[Download]) != ""%>
					<a href="<%=MovieUrl[Download]%>" target="_blank">下 载</a>
				<%EndIf%>
			</p>
			<p>节目地址：<input type="text" id="Url" /></p>
		</div>
		
		<!-- TemplateBeginEditable name="广告位：电影 - 播放列表上方" -->
		<div class="Ad7">
			<ali:Ad Guid="{7A45D096-8761-4e17-AFAE-1F4B72207F3C}">
				<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad2.jpg" alt="Ad" style="width:754px;height:70px" /></a>
			</ali:Ad>
		</div>
		<!-- TemplateEndEditable -->
		
		<!-- TemplateBeginEditable name="播放列表" -->
		<div class="Block6">
			<h2>播放列表</h2>
			<ali:List Object="Movie.Url" Condition="MovieID=Movie[ID] and CategoryID IS NULL">
				<h3>默认</h3>
				<blockquote>
					<ali:Record>
						<a href="<%=BuildUrl("play")%>" title="<%=Name%>"><%=Name%></a>
					</ali:Record>
				</blockquote>
			</ali:List>
			<ali:List Object="UrlCategory">
				<ali:Record>
					<ali:List Object="Movie.Url" Condition="MovieID=Movie[ID] and CategoryID=ID">
						<h3><%=Name%></h3>
						<blockquote>
							<ali:Record>
								<a href="<%=BuildUrl("play")%>" title="<%=Name%>"><%=Name%></a>
							</ali:Record>
						</blockquote>
					</ali:List>
				</ali:Record>
			</ali:List>
		</div>
		<!-- TemplateEndEditable -->
		
		<!-- TemplateBeginEditable name="广告位：电影 - 播放列表下方" -->
		<div class="Ad7">
			<ali:Ad Guid="{DA6AF242-BD38-4881-AE15-F9056185B121}">
				<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad2.jpg" alt="Ad" style="width:754px;height:70px" /></a>
			</ali:Ad>
		</div>
		<!-- TemplateEndEditable -->
		
		<%If Convert.ToBoolean(Config[EnableComment])%>
			<h4>
				<span class="Left">网友评论（<span id="CommentCount">0</span>）</span>
				<span class="Right"><a href="javascript:;" id="WriteComment">我也要写评论</a></span>
			</h4>
			<div class="Block8">
				<!-- TemplateBeginEditable name="评论列表" -->
				<div id="Comment"></div>
				<!-- TemplateEndEditable -->
				
				<!-- TemplateBeginEditable name="广告位：电影 - 评论下方" -->
				<div class="Ad7">
					<ali:Ad Guid="{0C1F2704-F5FF-4084-A5C3-5AEDCE31370A}">
						<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad2.jpg" alt="Ad" style="width:740px;height:70px" /></a>
					</ali:Ad>
				</div>
				<!-- TemplateEndEditable -->
				
				<!-- TemplateBeginEditable name="评论表单" -->
				<form id="CommentForm" action="">
					<textarea name="Content" cols="74" rows="7" class="<%=PageLang%>Font"></textarea><br />
					<%If Manager.HasRight("", InstanceID, PageLang, "MovieComment", "Add")%>
						<input type="checkbox" name="Anonymous" id="Anonymous" checked="checked" /><label for="Anonymous">匿名</label>
					<%Else%>
						<input type="checkbox" name="Anonymous" id="Anonymous" style="display:none" />
					<%EndIf%>
					用户名：<input type="text" size="20" name="Name" class="<%=PageLang%>Font" />
					<label id="PasswordLabel">密码：<input type="password" size="20" name="Password" class="CHSFont" /></label>
					<%If UserChannel != null%>
						<a href="<%=BuildUrl(UserChannel, "register", null)%>" target="_blank" title="新用户">新用户?</a>
					<%EndIf%>
					<input type="submit" value="提交评论" />
					<input type="hidden" name="ToID" />
				</form>
				<!-- TemplateEndEditable -->
			</div>		
		<%EndIf%>
	</div>
	<div class="Block1">
		<!-- TemplateBeginEditable name="广告位：电影 - 侧栏顶部" -->
		<ali:Ad Guid="{9AECD923-56A8-4487-BE85-39EEDB530126}">
			<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad10.gif" alt="Ad" style="width:218px;height:60px" /></a>
		</ali:Ad>
		<!-- TemplateEndEditable -->
		
		<!-- TemplateBeginEditable name="最新更新" -->
		<h1>最新更新</h1>
		<ali:List Object="Movie" Page="1" PageSize="10" Condition="IsDeleted=false and IsChecked=true" Sort="UpdateTime DESC">
			<ul class="List1">
				<ali:Record>
					<li><a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><%=Name%></a><span>(<%=Convert.ToDateTime(UpdateTime).ToString("yyyy-MM-dd")%>)</span></li>
				</ali:Record>
			</ul>
		</ali:List>
		<!-- TemplateEndEditable -->
		
		<!-- TemplateBeginEditable name="点击排行" -->
		<h1>点击排行</h1>
		<ali:List Object="Movie" Page="1" PageSize="10" Condition="IsDeleted=false and IsChecked=true" Sort="HitCount DESC">
			<ul class="List2">
				<ali:Record>
					<li><a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><%=Name%></a><span><%=HitCount%></span></li>
				</ali:Record>
			</ul>
		</ali:List>
		<!-- TemplateEndEditable -->
		
		<!-- TemplateBeginEditable name="广告位：电影 - 侧栏底部" -->
		<h1></h1>
		<div class="Ad6">
			<ali:Ad Guid="{442DC960-53F0-4e0d-BD56-0FC940E99163}">
				<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad6.gif" alt="Ad6" style="width:208px" /></a>
			</ali:Ad>
		</div>		
		<!-- TemplateEndEditable -->
	</div>
</div>

<!-- TemplateBeginEditable name="广告位：电影 - 网页底部" -->
<div class="Ad7">
	<ali:Ad Guid="{C6DB7AA8-C8B3-429a-AE4E-9C1E3AD81ABB}">
		<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad5.jpg" alt="Ad5" style="width:980px;height:70px" /></a>
	</ali:Ad>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="友情连接" -->
<ali:List Mark="System" Object="Link" Condition="IsChecked=true">
	<div class="Wrap">
		<div class="Link">
			<h1>友情链接</h1>
			<ul>
				<ali:Record>
					<li>
						<%If Convert.IsDBNull(Logo)%>
							<a href="<%=URL%>" target="_blank" title="<%=Name%>"><%=Name%></a>
						<%Else%>
							<a href="<%=URL%>" target="_blank" title="<%=Name%>"><img src="<%=Logo%>" alt="<%=Name%>" /></a>
						<%EndIf%>
					</li>
				</ali:Record>
			</ul>
		</div>
	</div>
</ali:List>
<!-- TemplateEndEditable -->

<div class="Footer">
	<!-- TemplateBeginEditable name="脚注菜单" -->
	<ali:Menu Condition="IsDisplay=true and CategoryID={BAC035A8-F6BB-4772-8D51-A7F4F3AB7AD3}">
		<ali:Record>
			<a href="<%=URL%>" target="<%=Target%>" title="<%=Name%>"<%=Style%>><%=Name%></a>
			<ali:Separator>|</ali:Separator>
		</ali:Record>
		<hr size="1" />
	</ali:Menu>
	<!-- TemplateEndEditable -->

	<%=Footer%>
</div>

<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=CommonPath%>swfobject.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<%If PageLang == "UYG" || PageLang == "KZA" || PageLang == "KGA"%>
	<script type="text/javascript" src="<%=CommonPath%>IlgharIme.js"></script>
<%EndIf%>
<%If !Guid.Equals(MovieUrl[PlayerID], Guid.Empty)%>
	<script type="text/javascript" src="<%=Player[CodeFile]%>"></script>
<%EndIf%>
<script type="text/javascript" src="<%=JsPath%>common.js"></script>
<%=StatisticsCode%>
</body>
</html>
